package com.ruoyi.warning.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.warning.domain.EarlyWarningSetting;

import java.util.List;

/**
 * 预警设置Mapper接口
 * 
 * @author ruoyi
 * @date 2024-11-24
 */
public interface EarlyWarningSettingMapper extends BaseMapper<EarlyWarningSetting> //修改
{
    /**
     * 查询预警设置
     * 
     * @param earlyWarningId 预警设置主键
     * @return 预警设置
     */
    public EarlyWarningSetting selectEarlyWarningSettingByEarlyWarningId(String earlyWarningId);

    /**
     * 查询预警设置列表
     * 
     * @param earlyWarningSetting 预警设置
     * @return 预警设置集合
     */
    public List<EarlyWarningSetting> selectEarlyWarningSettingList(EarlyWarningSetting earlyWarningSetting);

    /**
     * 新增预警设置
     * 
     * @param earlyWarningSetting 预警设置
     * @return 结果
     */
    public int insertEarlyWarningSetting(EarlyWarningSetting earlyWarningSetting);

    /**
     * 修改预警设置
     * 
     * @param earlyWarningSetting 预警设置
     * @return 结果
     */
    public int updateEarlyWarningSetting(EarlyWarningSetting earlyWarningSetting);

    /**
     * 删除预警设置
     * 
     * @param earlyWarningId 预警设置主键
     * @return 结果
     */
    public int deleteEarlyWarningSettingByEarlyWarningId(String earlyWarningId);

    /**
     * 批量删除预警设置
     * 
     * @param earlyWarningIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEarlyWarningSettingByEarlyWarningIds(String[] earlyWarningIds);
}
